﻿<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
      xmlns:xs="http://www.w3.org/2001/XMLSchema"
      exclude-result-prefixes="xs"
      version="2.0">
<xsl:output method="xml" indent="no"/>
  <xsl:param name="mode" select="'dump'"/>

<xsl:template match="VALUE.NAMEDOBJECT">
{  <xsl:value-of select="INSTANCENAME/KEYBINDING[@NAME='Name']/KEYVALUE"/>
 @ <xsl:value-of select="INSTANCE/PROPERTY[@CLASSORIGIN='CIM_ManagedSystemElement' and
    @NAME='Name']/VALUE"/>  
  @ <xsl:value-of select="INSTANCE/PROPERTY[@CLASSORIGIN='CIM_ManagedSystemElement' and
  @NAME='Name']/VALUE"/>  
  @ <xsl:value-of select="INSTANCE/PROPERTY[@CLASSORIGIN='SAP_LogicalALESystem' and
    @NAME='ALEName']/VALUE"/>  
  @ <xsl:value-of select="INSTANCE/PROPERTY[@CLASSORIGIN='CIM_System' and
  @NAME='NameFormat']/VALUE"/>  
  @ <xsl:value-of select="INSTANCE/PROPERTY[@CLASSORIGIN='CIM_ManagedElemen' and
    @NAME='Caption']/VALUE"/>  
  }
</xsl:template>
  
  
<xsl:template match="/CIM">
  <!--xsl:value-of
    select="distinct-values(DECLARATION/DECLGROUP.WITHNAME/VALUE.NAMEDOBJECT/INSTANCENAME/@CLASSNAME)"/-->;
  <!--xsl:apply-templates
    select="DECLARATION/DECLGROUP.WITHNAME/VALUE.NAMEDOBJECT[
    INSTANCENAME/@CLASSNAME='SAP_ApplicationSystem' or 
    INSTANCENAME/@CLASSNAME='SAP_LogicalALESystem'  or
    INSTANCENAME/@CLASSNAME='SAP_BCControlInstance'   
    ]"
    (INSTANCENAME/@CLASSNAME !='' and INSTANCENAME/@CLASSNAME!='')  -->
</xsl:template>
  
  <xsl:template match="/index">
  <rez>
    <xsl:variable name="fe1" select="document(export[1])/CIM/DECLARATION/DECLGROUP.WITHNAME"/>
    <xsl:variable name="fe2" select="document(export[2])/CIM/DECLARATION/DECLGROUP.WITHNAME"/>
    <xsl:variable name="fe3" select="document(export[3])/CIM/DECLARATION/DECLGROUP.WITHNAME"/>
    <xsl:variable name="fe4" select="document(export[4])/CIM/DECLARATION/DECLGROUP.WITHNAME"/>
    <xsl:variable name="fe5" select="document(export[5])/CIM/DECLARATION/DECLGROUP.WITHNAME"/>
    <xsl:variable name="common" select="($fe1|$fe2|$fe3|$fe4|$fe5)"/>
    <xsl:variable name="fcommon" select="($fe1/VALUE.NAMEDOBJECT/INSTANCENAME/@CLASSNAME|$fe2/VALUE.NAMEDOBJECT/INSTANCENAME/@CLASSNAME|$fe3/VALUE.NAMEDOBJECT/INSTANCENAME/@CLASSNAME|$fe4/VALUE.NAMEDOBJECT/INSTANCENAME/@CLASSNAME|$fe5/VALUE.NAMEDOBJECT/INSTANCENAME/@CLASSNAME)"/>
    <!--xsl:variable name="OnlyClassNames" select="distinct-values( $fcommon )"/-->
    
    <!-- -->
    <xsl:if test="$mode='handle'">
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_ALESystemViewedBCClient']" mode="SAP_ALESystemViewedBCClient"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_ALESystemViewedBusinessSystem']" mode="SAP_ALESystemViewedBusinessSystem"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_ApplicationSystem']" mode="SAP_ApplicationSystem"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_ApplicationSystemDSRService']" mode="SAP_ApplicationSystemDSRService"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_ApplicationSystemHost']" mode="SAP_ApplicationSystemHost"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_ApplicationSystemInstance']" mode="SAP_ApplicationSystemInstance"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_AppSysInstanceHost']" mode="SAP_AppSysInstanceHost"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_AppSysInstanceMember']" mode="SAP_AppSysInstanceMember"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCAgent']" mode="SAP_BCAgent"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCAgentHost']" mode="SAP_BCAgentHost"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCApplicationServer']" mode="SAP_BCApplicationServer"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCApplicationServerDispatcherPort']" mode="SAP_BCApplicationServerDispatcherPort"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCApplicationServerGateway']" mode="SAP_BCApplicationServerGateway"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCApplicationServerHost']" mode="SAP_BCApplicationServerHost"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCCentralServiceEnqueuePort']" mode="SAP_BCCentralServiceEnqueuePort"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCCentralServiceInstance']" mode="SAP_BCCentralServiceInstance"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCCentralServiceInstanceHost']" mode="SAP_BCCentralServiceInstanceHost"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCCentralServiceMessagePort']" mode="SAP_BCCentralServiceMessagePort"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCCentralServiceMsgHttpPort']" mode="SAP_BCCentralServiceMsgHttpPort"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCClient']" mode="SAP_BCClient"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCControlInstance']" mode="SAP_BCControlInstance"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCControlInstanceHost']" mode="SAP_BCControlInstanceHost"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCControlInstanceHTTPServicePort']" mode="SAP_BCControlInstanceHTTPServicePort"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCGateway']" mode="SAP_BCGateway"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCMessageServer']" mode="SAP_BCMessageServer"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCMessageServerDispatcherPort']" mode="SAP_BCMessageServerDispatcherPort"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCMessageServerHost']" mode="SAP_BCMessageServerHost"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCMessageServerHTTPServicePort']" mode="SAP_BCMessageServerHTTPServicePort"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCSystem']" mode="SAP_BCSystem"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCSystemAgent']" mode="SAP_BCSystemAgent"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCSystemApplicationServer']" mode="SAP_BCSystemApplicationServer"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCSystemCentralApplicationServer']" mode="SAP_BCSystemCentralApplicationServer"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCSystemClient']" mode="SAP_BCSystemClient"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCSystemJ2EEEngine']" mode="SAP_BCSystemJ2EEEngine"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCSystemMessageServer']" mode="SAP_BCSystemMessageServer"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCSystemSystemDB']" mode="SAP_BCSystemSystemDB"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BusinessSystem']" mode="SAP_BusinessSystem"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BusinessSystemExchangeServer']" mode="SAP_BusinessSystemExchangeServer"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BusinessSystemGroup']" mode="SAP_BusinessSystemGroup"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BusinessSystemGuid']" mode="SAP_BusinessSystemGuid"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BusinessSystemPath']" mode="SAP_BusinessSystemPath"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BusinessSystemViewedBCClient']" mode="SAP_BusinessSystemViewedBCClient"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BusinessSystemViewedJ2EEEngineCluster']" mode="SAP_BusinessSystemViewedJ2EEEngineCluster"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BusinessSystemViewedStandaloneJavaSystem']" mode="SAP_BusinessSystemViewedStandaloneJavaSystem"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_CentrallyMonitoredApplicationSystem']" mode="SAP_CentrallyMonitoredApplicationSystem"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_CollectedBusinessSystems']" mode="SAP_CollectedBusinessSystems"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_CollectedSoftwareComponents']" mode="SAP_CollectedSoftwareComponents"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_CollectedSuppliedElements']" mode="SAP_CollectedSuppliedElements"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_ComputerSystem']" mode="SAP_ComputerSystem"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_ContainedLandscape']" mode="SAP_ContainedLandscape"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_DatabaseInstance']" mode="SAP_DatabaseInstance"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_DatabaseSystem']" mode="SAP_DatabaseSystem"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_DBInstanceHost']" mode="SAP_DBInstanceHost"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_DBSystemInstance']" mode="SAP_DBSystemInstance"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_DSRRFCDestinationBCAgent']" mode="SAP_DSRRFCDestinationBCAgent"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_ExchangeServerHTTPServicePort']" mode="SAP_ExchangeServerHTTPServicePort"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_GlobalUniqueID']" mode="SAP_GlobalUniqueID"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_HostedAppSysDSRService']" mode="SAP_HostedAppSysDSRService"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_HostedJ2EEDeployedSCService']" mode="SAP_HostedJ2EEDeployedSCService"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_HostedJCODestination']" mode="SAP_HostedJCODestination"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_HostedTCPIPRFCDestination']" mode="SAP_HostedTCPIPRFCDestination"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_HostedXIAdapterService']" mode="SAP_HostedXIAdapterService"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_HostedXIRemoteAdminService']" mode="SAP_HostedXIRemoteAdminService"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_HTTPServicePort']" mode="SAP_HTTPServicePort"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_InstalledProduct']" mode="SAP_InstalledProduct"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_InstalledProductImage']" mode="SAP_InstalledProductImage"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_InstalledProductLogicalApplicationSystem']" mode="SAP_InstalledProductLogicalApplicationSystem"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_InstalledSoftwareComponent']" mode="SAP_InstalledSoftwareComponent"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_InstalledSupportPackage']" mode="SAP_InstalledSupportPackage"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_InstalledSupportPackageSoftwareComponent']" mode="SAP_InstalledSupportPackageSoftwareComponent"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_InstalledSWComponentOnApplicationSystem']" mode="SAP_InstalledSWComponentOnApplicationSystem"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_IPServicePort']" mode="SAP_IPServicePort"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_J2EEDeployedSCService']" mode="SAP_J2EEDeployedSCService"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_J2EEDeployedSCServiceImplementation']" mode="SAP_J2EEDeployedSCServiceImplementation"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_J2EEEngineCluster']" mode="SAP_J2EEEngineCluster"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_J2EEEngineClusterInstance']" mode="SAP_J2EEEngineClusterInstance"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_J2EEEngineClusterMember']" mode="SAP_J2EEEngineClusterMember"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_J2EEEngineClusterNodeHost']" mode="SAP_J2EEEngineClusterNodeHost"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_J2EEEngineDispatcherNode']" mode="SAP_J2EEEngineDispatcherNode"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_J2EEEngineInstance']" mode="SAP_J2EEEngineInstance"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_J2EEEngineInstanceHost']" mode="SAP_J2EEEngineInstanceHost"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_J2EEEngineInstanceMember']" mode="SAP_J2EEEngineInstanceMember"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_J2EEEngineServerNode']" mode="SAP_J2EEEngineServerNode"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_J2EEEngineServiceInstance']" mode="SAP_J2EEEngineServiceInstance"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_J2EEEngineSystemDB']" mode="SAP_J2EEEngineSystemDB"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_J2EENodeDebugPort']" mode="SAP_J2EENodeDebugPort"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_J2EENodeServletPort']" mode="SAP_J2EENodeServletPort"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_JavaDebugPort']" mode="SAP_JavaDebugPort"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_JDISystemLandscape']" mode="SAP_JDISystemLandscape"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_LogApplicationSystemInLandscapeView']" mode="SAP_LogApplicationSystemInLandscapeView"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_LogicalALESystem']" mode="SAP_LogicalALESystem"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_LogicalSystemViewedSystem']" mode="SAP_LogicalSystemViewedSystem"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_MonitoringSystemGroup']" mode="SAP_MonitoringSystemGroup"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_MsgServJCODestination']" mode="SAP_MsgServJCODestination"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_RFCDestinationBCAgent']" mode="SAP_RFCDestinationBCAgent"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_SoftwareComponentType']" mode="SAP_SoftwareComponentType"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_StandaloneJavaSystem']" mode="SAP_StandaloneJavaSystem"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_SuppliedElements']" mode="SAP_SuppliedElements"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_SuppliedElementsSupplier']" mode="SAP_SuppliedElementsSupplier"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_SuppliedKeyElement']" mode="SAP_SuppliedKeyElement"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_SupportPackageType']" mode="SAP_SupportPackageType"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_SystemLandscapeView']" mode="SAP_SystemLandscapeView"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_TCPIPRFCDestination']" mode="SAP_TCPIPRFCDestination"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_XIAdapterFramework']" mode="SAP_XIAdapterFramework"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_XIAdapterHostedHTTPServicePort']" mode="SAP_XIAdapterHostedHTTPServicePort"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_XIAdapterService']" mode="SAP_XIAdapterService"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_XIAdapterServiceAccessByHTTP']" mode="SAP_XIAdapterServiceAccessByHTTP"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_XIContainedAdapter']" mode="SAP_XIContainedAdapter"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_XIContainedIntegrationDirectory']" mode="SAP_XIContainedIntegrationDirectory"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_XIContainedIntegrationRepository']" mode="SAP_XIContainedIntegrationRepository"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_XIContainedIntegrationServer']" mode="SAP_XIContainedIntegrationServer"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_XIContainedRuntimeManagementServer']" mode="SAP_XIContainedRuntimeManagementServer"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_XIDomain']" mode="SAP_XIDomain"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_XIIntegrationDirectory']" mode="SAP_XIIntegrationDirectory"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_XIIntegrationRepository']" mode="SAP_XIIntegrationRepository"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_XIIntegrationServer']" mode="SAP_XIIntegrationServer"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_XIIntegrationServerLogicalIdentity']" mode="SAP_XIIntegrationServerLogicalIdentity"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_XIRemoteAdminService']" mode="SAP_XIRemoteAdminService"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_XIRemoteAdminServiceAccessByHTTP']" mode="SAP_XIRemoteAdminServiceAccessByHTTP"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_XIRuntimeManagementServer']" mode="SAP_XIRuntimeManagementServer"/>
    <xsl:apply-templates select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_XIViewedXISubSystem']" mode="SAP_XIViewedXISubSystem"/>
    </xsl:if>    
      
    <xsl:if test="$mode='dump'">
      <xsl:comment>SAP_ALESystemViewedBCClient</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_ALESystemViewedBCClient']"/>
      <xsl:comment>SAP_ALESystemViewedBusinessSystem</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_ALESystemViewedBusinessSystem']"/>
      <xsl:comment>SAP_ApplicationSystem</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_ApplicationSystem']"/>
      <xsl:comment>SAP_ApplicationSystemDSRService</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_ApplicationSystemDSRService']"/>
      <xsl:comment>SAP_ApplicationSystemHost</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_ApplicationSystemHost']"/>
      <xsl:comment>SAP_ApplicationSystemInstance</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_ApplicationSystemInstance']"/>
      <xsl:comment>SAP_AppSysInstanceHost</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_AppSysInstanceHost']"/>
      <xsl:comment>SAP_AppSysInstanceMember</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_AppSysInstanceMember']"/>
      <xsl:comment>SAP_BCAgent</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCAgent']"/>
      <xsl:comment>SAP_BCAgentHost</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCAgentHost']"/>
      <xsl:comment>SAP_BCApplicationServer</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCApplicationServer']"/>
      <xsl:comment>SAP_BCApplicationServerDispatcherPort</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCApplicationServerDispatcherPort']"/>
      <xsl:comment>SAP_BCApplicationServerGateway</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCApplicationServerGateway']"/>
      <xsl:comment>SAP_BCApplicationServerHost</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCApplicationServerHost']"/>
      <xsl:comment>SAP_BCCentralServiceEnqueuePort</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCCentralServiceEnqueuePort']"/>
      <xsl:comment>SAP_BCCentralServiceInstance</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCCentralServiceInstance']"/>
      <xsl:comment>SAP_BCCentralServiceInstanceHost</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCCentralServiceInstanceHost']"/>
      <xsl:comment>SAP_BCCentralServiceMessagePort</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCCentralServiceMessagePort']"/>
      <xsl:comment>SAP_BCCentralServiceMsgHttpPort</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCCentralServiceMsgHttpPort']"/>
      <xsl:comment>SAP_BCClient</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCClient']"/>
      <xsl:comment>SAP_BCControlInstance</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCControlInstance']"/>
      <xsl:comment>SAP_BCControlInstanceHost</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCControlInstanceHost']"/>
      <xsl:comment>SAP_BCControlInstanceHTTPServicePort</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCControlInstanceHTTPServicePort']"/>
      <xsl:comment>SAP_BCGateway</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCGateway']"/>
      <xsl:comment>SAP_BCMessageServer</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCMessageServer']"/>
      <xsl:comment>SAP_BCMessageServerDispatcherPort</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCMessageServerDispatcherPort']"/>
      <xsl:comment>SAP_BCMessageServerHost</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCMessageServerHost']"/>
      <xsl:comment>SAP_BCMessageServerHTTPServicePort</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCMessageServerHTTPServicePort']"/>
      <xsl:comment>SAP_BCSystem</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCSystem']"/>
      <xsl:comment>SAP_BCSystemAgent</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCSystemAgent']"/>
      <xsl:comment>SAP_BCSystemApplicationServer</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCSystemApplicationServer']"/>
      <xsl:comment>SAP_BCSystemCentralApplicationServer</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCSystemCentralApplicationServer']"/>
      <xsl:comment>SAP_BCSystemClient</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCSystemClient']"/>
      <xsl:comment>SAP_BCSystemJ2EEEngine</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCSystemJ2EEEngine']"/>
      <xsl:comment>SAP_BCSystemMessageServer</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCSystemMessageServer']"/>
      <xsl:comment>SAP_BCSystemSystemDB</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BCSystemSystemDB']"/>
      <xsl:comment>SAP_BusinessSystem</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BusinessSystem']"/>
      <xsl:comment>SAP_BusinessSystemExchangeServer</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BusinessSystemExchangeServer']"/>
      <xsl:comment>SAP_BusinessSystemGroup</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BusinessSystemGroup']"/>
      <xsl:comment>SAP_BusinessSystemGuid</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BusinessSystemGuid']"/>
      <xsl:comment>SAP_BusinessSystemPath</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BusinessSystemPath']"/>
      <xsl:comment>SAP_BusinessSystemViewedBCClient</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BusinessSystemViewedBCClient']"/>
      <xsl:comment>SAP_BusinessSystemViewedJ2EEEngineCluster</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BusinessSystemViewedJ2EEEngineCluster']"/>
      <xsl:comment>SAP_BusinessSystemViewedStandaloneJavaSystem</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_BusinessSystemViewedStandaloneJavaSystem']"/>
      <xsl:comment>SAP_CentrallyMonitoredApplicationSystem</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_CentrallyMonitoredApplicationSystem']"/>
      <xsl:comment>SAP_CollectedBusinessSystems</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_CollectedBusinessSystems']"/>
      <xsl:comment>SAP_CollectedSoftwareComponents</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_CollectedSoftwareComponents']"/>
      <xsl:comment>SAP_CollectedSuppliedElements</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_CollectedSuppliedElements']"/>
      <xsl:comment>SAP_ComputerSystem</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_ComputerSystem']"/>
      <xsl:comment>SAP_ContainedLandscape</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_ContainedLandscape']"/>
      <xsl:comment>SAP_DatabaseInstance</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_DatabaseInstance']"/>
      <xsl:comment>SAP_DatabaseSystem</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_DatabaseSystem']"/>
      <xsl:comment>SAP_DBInstanceHost</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_DBInstanceHost']"/>
      <xsl:comment>SAP_DBSystemInstance</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_DBSystemInstance']"/>
      <xsl:comment>SAP_DSRRFCDestinationBCAgent</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_DSRRFCDestinationBCAgent']"/>
      <xsl:comment>SAP_ExchangeServerHTTPServicePort</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_ExchangeServerHTTPServicePort']"/>
      <xsl:comment>SAP_GlobalUniqueID</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_GlobalUniqueID']"/>
      <xsl:comment>SAP_HostedAppSysDSRService</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_HostedAppSysDSRService']"/>
      <xsl:comment>SAP_HostedJ2EEDeployedSCService</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_HostedJ2EEDeployedSCService']"/>
      <xsl:comment>SAP_HostedJCODestination</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_HostedJCODestination']"/>
      <xsl:comment>SAP_HostedTCPIPRFCDestination</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_HostedTCPIPRFCDestination']"/>
      <xsl:comment>SAP_HostedXIAdapterService</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_HostedXIAdapterService']"/>
      <xsl:comment>SAP_HostedXIRemoteAdminService</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_HostedXIRemoteAdminService']"/>
      <xsl:comment>SAP_HTTPServicePort</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_HTTPServicePort']"/>
      <xsl:comment>SAP_InstalledProduct</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_InstalledProduct']"/>
      <xsl:comment>SAP_InstalledProductImage</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_InstalledProductImage']"/>
      <xsl:comment>SAP_InstalledProductLogicalApplicationSystem</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_InstalledProductLogicalApplicationSystem']"/>
      <xsl:comment>SAP_InstalledSoftwareComponent</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_InstalledSoftwareComponent']"/>
      <xsl:comment>SAP_InstalledSupportPackage</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_InstalledSupportPackage']"/>
      <xsl:comment>SAP_InstalledSupportPackageSoftwareComponent</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_InstalledSupportPackageSoftwareComponent']"/>
      <xsl:comment>SAP_InstalledSWComponentOnApplicationSystem</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_InstalledSWComponentOnApplicationSystem']"/>
      <xsl:comment>SAP_IPServicePort</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_IPServicePort']"/>
      <xsl:comment>SAP_J2EEDeployedSCService</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_J2EEDeployedSCService']"/>
      <xsl:comment>SAP_J2EEDeployedSCServiceImplementation</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_J2EEDeployedSCServiceImplementation']"/>
      <xsl:comment>SAP_J2EEEngineCluster</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_J2EEEngineCluster']"/>
      <xsl:comment>SAP_J2EEEngineClusterInstance</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_J2EEEngineClusterInstance']"/>
      <xsl:comment>SAP_J2EEEngineClusterMember</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_J2EEEngineClusterMember']"/>
      <xsl:comment>SAP_J2EEEngineClusterNodeHost</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_J2EEEngineClusterNodeHost']"/>
      <xsl:comment>SAP_J2EEEngineDispatcherNode</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_J2EEEngineDispatcherNode']"/>
      <xsl:comment>SAP_J2EEEngineInstance</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_J2EEEngineInstance']"/>
      <xsl:comment>SAP_J2EEEngineInstanceHost</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_J2EEEngineInstanceHost']"/>
      <xsl:comment>SAP_J2EEEngineInstanceMember</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_J2EEEngineInstanceMember']"/>
      <xsl:comment>SAP_J2EEEngineServerNode</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_J2EEEngineServerNode']"/>
      <xsl:comment>SAP_J2EEEngineServiceInstance</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_J2EEEngineServiceInstance']"/>
      <xsl:comment>SAP_J2EEEngineSystemDB</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_J2EEEngineSystemDB']"/>
      <xsl:comment>SAP_J2EENodeDebugPort</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_J2EENodeDebugPort']"/>
      <xsl:comment>SAP_J2EENodeServletPort</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_J2EENodeServletPort']"/>
      <xsl:comment>SAP_JavaDebugPort</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_JavaDebugPort']"/>
      <xsl:comment>SAP_JDISystemLandscape</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_JDISystemLandscape']"/>
      <xsl:comment>SAP_LogApplicationSystemInLandscapeView</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_LogApplicationSystemInLandscapeView']"/>
      <xsl:comment>SAP_LogicalALESystem</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_LogicalALESystem']"/>
      <xsl:comment>SAP_LogicalSystemViewedSystem</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_LogicalSystemViewedSystem']"/>
      <xsl:comment>SAP_MonitoringSystemGroup</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_MonitoringSystemGroup']"/>
      <xsl:comment>SAP_MsgServJCODestination</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_MsgServJCODestination']"/>
      <xsl:comment>SAP_RFCDestinationBCAgent</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_RFCDestinationBCAgent']"/>
      <xsl:comment>SAP_SoftwareComponentType</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_SoftwareComponentType']"/>
      <xsl:comment>SAP_StandaloneJavaSystem</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_StandaloneJavaSystem']"/>
      <xsl:comment>SAP_SuppliedElements</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_SuppliedElements']"/>
      <xsl:comment>SAP_SuppliedElementsSupplier</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_SuppliedElementsSupplier']"/>
      <xsl:comment>SAP_SuppliedKeyElement</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_SuppliedKeyElement']"/>
      <xsl:comment>SAP_SupportPackageType</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_SupportPackageType']"/>
      <xsl:comment>SAP_SystemLandscapeView</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_SystemLandscapeView']"/>
      <xsl:comment>SAP_TCPIPRFCDestination</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_TCPIPRFCDestination']"/>
      <xsl:comment>SAP_XIAdapterFramework</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_XIAdapterFramework']"/>
      <xsl:comment>SAP_XIAdapterHostedHTTPServicePort</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_XIAdapterHostedHTTPServicePort']"/>
      <xsl:comment>SAP_XIAdapterService</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_XIAdapterService']"/>
      <xsl:comment>SAP_XIAdapterServiceAccessByHTTP</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_XIAdapterServiceAccessByHTTP']"/>
      <xsl:comment>SAP_XIContainedAdapter</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_XIContainedAdapter']"/>
      <xsl:comment>SAP_XIContainedIntegrationDirectory</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_XIContainedIntegrationDirectory']"/>
      <xsl:comment>SAP_XIContainedIntegrationRepository</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_XIContainedIntegrationRepository']"/>
      <xsl:comment>SAP_XIContainedIntegrationServer</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_XIContainedIntegrationServer']"/>
      <xsl:comment>SAP_XIContainedRuntimeManagementServer</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_XIContainedRuntimeManagementServer']"/>
      <xsl:comment>SAP_XIDomain</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_XIDomain']"/>
      <xsl:comment>SAP_XIIntegrationDirectory</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_XIIntegrationDirectory']"/>
      <xsl:comment>SAP_XIIntegrationRepository</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_XIIntegrationRepository']"/>
      <xsl:comment>SAP_XIIntegrationServer</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_XIIntegrationServer']"/>
      <xsl:comment>SAP_XIIntegrationServerLogicalIdentity</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_XIIntegrationServerLogicalIdentity']"/>
      <xsl:comment>SAP_XIRemoteAdminService</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_XIRemoteAdminService']"/>
      <xsl:comment>SAP_XIRemoteAdminServiceAccessByHTTP</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_XIRemoteAdminServiceAccessByHTTP']"/>
      <xsl:comment>SAP_XIRuntimeManagementServer</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_XIRuntimeManagementServer']"/>
      <xsl:comment>SAP_XIViewedXISubSystem</xsl:comment><xsl:copy-of select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_XIViewedXISubSystem']"/>
    </xsl:if>
    <xsl:if test="$mode='desc'">
      <xsl:for-each select="$common/VALUE.NAMEDOBJECT[INSTANCENAME/@CLASSNAME='SAP_XIDomain']">
        <xsl:variable name="DN" select="INSTANCENAME/KEYBINDING[@NAME='Name']/KEYVALUE"/>
        <xidomain name="{$DN}" 
          created="{INSTANCE[@CLASSNAME='SAP_XIDomain']/QUALIFIER[@NAME='SAP_CreationTime']/VALUE}"
          modified="{INSTANCE[@CLASSNAME='SAP_XIDomain']/QUALIFIER[@NAME='SAP_LastModificationTime']/VALUE}"
          s1="{INSTANCE[@CLASSNAME='SAP_XIDomain']/PROPERTY[@CLASSORIGIN='CIM_ManagedSystemElement'
          and @NAME='Name']/VALUE}"
          s2="{INSTANCE[@CLASSNAME='SAP_XIDomain']/PROPERTY[@CLASSORIGIN='CIM_ManagedElement' and
          @NAME='Caption']/VALUE}"
          >
          <!-- look for Contained Adapter -->
          <xsl:variable name="CA" 
            select="$common/VALUE.NAMEDOBJECT[INSTANCENAME[@CLASSNAME='SAP_XIContainedAdapter']/KEYBINDING[@NAME='GroupComponent']/VALUE.REFERENCE/INSTANCENAME[@CLASSNAME='SAP_XIDomain']/KEYBINDING[@NAME='Name']/KEYVALUE=string($DN)
            ]"/>

          <af
            name="{$CA/INSTANCE[@CLASSNAME='SAP_XIContainedAdapter']/PROPERTY.REFERENCE[@REFERENCECLASS='SAP_XIAdapter'
            and
            @NAME='PartComponent']/VALUE.REFERENCE/INSTANCENAME[@CLASSNAME='SAP_XIAdapterFramework']/KEYBINDING[@NAME='Name']/KEYVALUE}"/>
        </xidomain>
      </xsl:for-each>
    </xsl:if>
      
    </rez>
  </xsl:template>
  
</xsl:stylesheet>
